fix bug 852354
authorcinamod <cinamod>
Tue, 30 Dec 2003 16:44:40 +0000 (16:44 +0000)
committercinamod <cinamod>
Tue, 30 Dec 2003 16:44:40 +0000 (16:44 +0000)
modules/engines/ms-windows/ChangeLog.old
modules/engines/ms-windows/wimp_style.c

index b3140cea7fd8c705bcfc5e783fd2597c2c1f41e4..2e4ea98c8fd80d091573ba23d651a55989b9e081 100755 (executable)
@@ -1,3 +1,7 @@
+2003-12-30  Dom Lachowicz <cinamod@hotmail.com>\r
+\r
+       * src/wimp_style.c: Fix bug 852354 to my liking\r
+       \r
 2003-12-01  Dom Lachowicz <cinamod@hotmail.com>\r
 \r
        * src/wimp_style.c: Fix coloration for the expander's +/- part. Was\r
index 4a12cd8af8ca0ebeb74f39a8069beee943620e04..44033a9bd1b0b39dfe24b394c76aabff4ec61199 100755 (executable)
@@ -1383,7 +1383,7 @@ draw_box (GtkStyle      *style,
               /* Blank in classic Windows */
             }
         }
-      else
+      else if (widget && GTK_IS_SCROLLBAR(widget))
         {
           gboolean is_vertical = GTK_IS_VSCROLLBAR(widget);
 
@@ -1430,6 +1430,20 @@ draw_box (GtkStyle      *style,
               return;
             }
         }
+      else if (widget && GTK_IS_SCALE(widget))
+       {
+         gboolean is_vertical = GTK_IS_VSCALE(widget);
+         
+         parent_class->draw_box (style, window, state_type, GTK_SHADOW_NONE, area,
+                                 widget, detail, x, y, width, height);
+         
+         if(is_vertical)
+           parent_class->draw_box(style, window, state_type, GTK_SHADOW_ETCHED_IN, area, NULL, NULL, (2 * x + width)/2, y, 1, height);
+         else
+           parent_class->draw_box(style, window, state_type, GTK_SHADOW_ETCHED_IN, area, NULL, NULL, x, (2 * y + height)/2, width, 1);
+         
+         return;
+       }
     }
   else if (detail && strcmp (detail, "optionmenu") == 0)
     {